package com.job.Gai_Yian.Homework0707;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-09 10:27:57
 */
public class Example5 {
    public static int number=100;
    public String name;

    {
        this.name="老王";
    }

    static {
        System.out.println("静态代码块执行了！！！");
    }

    public Example5(String name){
        this.name=name;
        System.out.println("有参构造执行了！！！");
    }

    public Example5(){
        System.out.println("无参构造执行了！！！");
    }
}
